package com.guli.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guli.common.utils.PageUtils;
import com.guli.gulimall.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author wzh
 * @email sunlightcs@gmail.com
 * @date 2021-12-09 15:49:12
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params, String type, Integer id);

    void updById(AttrEntity attr);

    void add(AttrEntity attr);

    AttrEntity getByAid(Long attrId);

    List<AttrEntity> attrRelation(Integer attrGroupId);

    PageUtils noattrRelation(Map<String, Object> params);

    void relationUpdate(AttrEntity attrEntities);
}

